package com.example.ruihuada.ui.HomeModule.activity

import androidx.recyclerview.widget.LinearLayoutManager
import com.example.ruihuada.R
import com.example.ruihuada.base.BaseActivity
import com.example.ruihuada.ui.HomeModule.adapter.ActivityAdapter
import kotlinx.android.synthetic.main.activity_actvitylist.*

class ActivityListActivity : BaseActivity() {
    val tilteList = mutableListOf(
        "报名活动",
        "秒杀活动",
        "拼团活动",
        "砍价活动",
        "抽奖活动",
        "集字活动"
    )
    override fun getLayoutId(): Int = R.layout.activity_actvitylist

    override fun initView() {
        buildToolBar { title = "发布" }

        recyclerview.layoutManager = LinearLayoutManager(this)
        var mAdapter = ActivityAdapter(tilteList)
        recyclerview.adapter = mAdapter
    }

    override fun isActionBar(): Boolean = true
}